﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleFileManager.Manager
{
   static class FilePanelItemFactory
    {
       public static FilePanelItem CreateFolder(string name, DateTime lastAccessTime,IFolderIterator itr )
       {
           return new Folder(name, lastAccessTime, itr);
       }

       public static FilePanelItem CreateFolder(string name)
       {
           return new Folder(name);
       }

       public static FilePanelItem CreateFile(string name, long length, DateTime lastAccessTime, IFolderIterator itr)
       {
           return new File(name, length, lastAccessTime, itr);
       }

       public static FilePanelItem CreateDrive(string name)
       {
           return new Drive(name);
       }
    }
}
